package com.cykj.pos.service;

import com.cykj.pos.domain.BizBehalfPayment;
import com.cykj.pos.domain.BizMicroInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cykj.pos.domain.dto.CashOutDTO;
import com.cykj.pos.domain.dto.CashOutVO;
import com.cykj.pos.domain.dto.SubmitGrantDetailDTO;

import java.util.List;

/**
 * 报件小微商户信息Service接口
 *
 * @author ningbingwu
 * @date 2021-01-11
 */
public interface IBizMicroInfoService extends IService<BizMicroInfo> {
    /**
     * 插入列表
     */
    int updataMicroInfo(BizMicroInfo bizMicroInfo);

    /**
     * 查询列表
     */
    List<BizMicroInfo> queryList(BizMicroInfo bizMicroInfo);

    /**
     * 通过商户id获取小微商户附加信息
     * @param merchId
     * @return
     */
    public BizMicroInfo getBizMicroInfoByMerchId(Long merchId);

    /**
     * 身份证号是否存在
     * @param card
     * @return
     */
    boolean idCordIsExist(String card);

    /**
     * 通过用户id和账户类型查询商户钱包等信息
     * @param cashOutDTO
     * @return
     */
    CashOutVO getMerchMicroInfoByUserIdAndAccountType(CashOutDTO cashOutDTO);

    /**
     * 确认支付密码
     * @param cashOutDTO
     * @return
     */
    boolean confirmPaymentPassword(CashOutDTO cashOutDTO);

    CashOutVO getXinLongMerchMicroInfoByUserIdAndAccountType(SubmitGrantDetailDTO submitGrantDetailDTO);

    CashOutVO getXinLongMerchMicroInfoByUserIdAndAccountType1(SubmitGrantDetailDTO submitGrantDetailDTO);

    String getDfTypeByMerchId(String merchId);

    String getDeptIdByuserId(String userId);

    BizBehalfPayment getBehalfPaymentByDeptId(String deptId);

    BizBehalfPayment getBehalfPaymentByCode(String code);

    String notifyPayment(String requestJson,String code) throws Exception;
}
